package service.impl;

import dao.ClientDao;
import dao.impl.ClientDaoImpl;
import entity.Client;
import service.ClientService;

import java.util.List;

public class ClientServiceImpl implements ClientService {
    private ClientDao clientDao= new ClientDaoImpl();
    @Override
    public List<Client> getAllClients() {
        List<Client> clients = clientDao.selectAllClients();
        return clients;
    }

    @Override
    public void AddClient(Client client) {
        clientDao.addClient(client);
    }
}
